<%content_for :head do%>
<%= javascript_include_tag 'prototype' %>
<script type="text/javascript">
	function translate_and_restart(){
		jQuery("#restart_but").attr('disabled', 'disabled');
		jQuery("#restart_but").attr('value','In Process...');
		setTimeout(function(){
			window.location.reload();
			jQuery("#restart_but").attr('value','Translate Sting');
			jQuery("#restart_but").removeAttr('disabled')
		},10000);	
	
	}

</script>

<%end%>
<div>
	<%= _("Use this page to manage translations of the scorecard system. To create or update translations you must:") %>
</div>
<div id ="steps">
	<ul>
		<li><%= _("Log in to this site and add any translator users")%> <a href="#" onclick="showHelpPopup()" ><%=_('How To Add Translators')%> </a></li>
		<li><%= _("Ask them to do the translations") %> </li>
		<li><%= _("When they are done, refresh this website so translations can be seen by clicking on this button:") %> 
		<%= button_to_remote _("Refresh translations on this site "), {:url => '/home/translate'}, {:class => 'translate_but',:id => 'restart_but', :onclick => "translate_and_restart()" } %>
		
		</li>
	</ul>
</div>
<div>
<%= _("Tips for managing translations:") %>
 	<ul>
		<li><%= _("Plan ahead! Ask translators to reserve availability, do their work, and check it ahead of when it's needed.") %> </li>
        <li><%= _("Ask translators to check their work. If you can, have an independent reviewer as well.") %> </li>
        <li><%= _("Ask your users to tell you by email if they see missing or hard to understand translations. Ask them for what they think it should say!") %> </li>
        <li><%= _("Acknowledge their work: Say thanks to your translators and acknowledge their work publicly, in emails, at meetings, etc. - especially if they are volunteers!") %> </li>
	</ul>
</div>
<div>
	<div>
		<%= _("Advanced:") %>
	</div>
	<div>
		<%= _("Dynamic Extraction: If you have changed the scorecard you need to make the new questions or options available to translators. You should only need to do this after asking developers to change the meanings of questions or adding/removing questions from the scorecard. If you are sure the scorecard questions have changed and you need to make these new questions available on the translation site, click on this button.") %>
	</div>
	<div>
		<%= button_to _("Send changes in scorecard questions to translation site"), {:controller => 'home', :action => 'extract'}, {:id => 'translate_but'} %>
	</div>
	<div>
		<%= _("Note You will need to check all translations after pressing on this button, and some older translations that aren't needed anymore may be lost.") %>
	</div>
</div>
	
	

	




